package scenic.toolkit;

import scenic.toolkit.db.CharArray;
import scenic.toolkit.db.Property;
import scenic.toolkit.db.Record;

public class Font extends Record {
//	private java.awt.Font awtFont;
	private static Property<String> familyProperty = new Property<String>("family");
	private static Property<Double> sizeProperty = new Property<Double>("size");
	
	public Font(String family, double size) {
		setFamily(family);
		setSize(size);
	}
	
	public void setFamily(String family) {
		familyProperty.set(this, family);
	}
	
	public String getFamily() {
		return familyProperty.get(this);
	}
	
	public void setSize(double size) {
		sizeProperty.set(this, size);
	}
	
	public double getSize() {
		return sizeProperty.get(this);
	}
	
	public java.awt.Font getAwtFont() {
		return new java.awt.Font(getFamily(), java.awt.Font.PLAIN, (int)getSize());
	}
}